extend gitAnnexLink special case for worktrees
authorJoey Hess <joeyh@joeyh.name>
Mon, 14 Jul 2025 18:43:43 +0000 (14:43 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 14 Jul 2025 18:43:43 +0000 (14:43 -0400)
commitaded5f9b7f4918f839a14e3d45ae095a7f82538f
treec4a13cc9c2fdcd4871f728e309c63e6965441a16
parent9cdcbedf2d9a1db5d9f2e9cb7260dc692f6d5d5f
extend gitAnnexLink special case for worktrees

Fix symlinks generated to annexed content when in adjusted unlocked branch in a
linked worktree on a filesystem not supporting symlinks.

Before this fix, the symlink generated by eg git-annex sync in an adjusted
unlocked branch contained ".git/worktrees/". There was a special case
for the similar problem with submodules, so just use it to handle this case as
well. To detect this case, rely on fixupUnusualRepos setting mainWorkTreePath.
Annex/Locations.hs
CHANGELOG